<template>
  <div>
    <button @click="shows">点击显示</button>
  </div>
</template>

<script>

export default {
  components:{
    
  },
  methods:{
    shows(){
      let instance = this.$loading({
        confirm:()=>{
          console.log("确认被点击")
        }
      });
      setTimeout(() => {
        instance.close();
      }, 1000);
    },
  },
}
</script>

<style>

</style>